package com.haidao.admin.component.service;

import com.haidao.admin.component.params.LoginParam;
import com.haidao.admin.component.entity.User;
import com.nimbusds.jose.JOSEException;

public interface UserService {

    /**
     * 登录
     *
     * @param param
     * @return
     * @
     */
    User login(LoginParam param) ;

    /**
     * 获取JWT token
     *
     * @param user
     * @return
     * @
     */
    String genToken(User user) throws JOSEException;

    /**
     * 用户详情
     *
     * @param subject
     * @return
     */
    User detail(String subject);

}